package com.uniontech.curd.entity.http;

public class DataResponse {
    private int status;
    private String message;
    private Object data;
    private long timestamp=System.currentTimeMillis();

    public DataResponse(){
        status=HttpMsgDefine.HTTP_STATUS_OK;
        message=HttpMsgDefine.HTTP_MSG_OK;
    }

    public DataResponse(Object data) { this.data=data; }

    public DataResponse(int status, String message){
        this.status = status;
        this.message = message;
    }
    public DataResponse(int status, String message, String data){
        this.status=status;
        this.message=message;
        this.data=data;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
